import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import rootReducer from './reducers'
// 根据合并之后的 reducer 创建了 store 实例并导出
export default createStore(rootReducer, applyMiddleware(thunk))
